package com.yunxin.zm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yunxin.basis.servlet.impl.BasisServiceImpl;
import com.yunxin.zm.domain.BookChapterJoinEntity;
import com.yunxin.zm.domain.dto.BookChapterJoinDTO;
import com.yunxin.zm.domain.query.BookChapterJoinQuery;
import com.yunxin.zm.domain.save.BookChapterJoinSave;
import com.yunxin.zm.mapper.BookChapterJoinMapper;
import com.yunxin.zm.service.IBookChapterJoinService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *Service业务层处理
 * 
 * @author hjl
 * @date Mon Mar 03 09:09:51 CST 2025
 */
@Service
public class BookChapterJoinServiceImpl extends BasisServiceImpl<BookChapterJoinEntity, BookChapterJoinMapper, BookChapterJoinDTO, BookChapterJoinSave, BookChapterJoinQuery> implements IBookChapterJoinService {

   public BookChapterJoinServiceImpl(BookChapterJoinMapper mapper) {super(mapper);}

   @Override
   public List<BookChapterJoinDTO> findBookChapter(Long bid) {
      LambdaQueryWrapper<BookChapterJoinEntity> wrapper = new LambdaQueryWrapper<>();
      wrapper.eq(BookChapterJoinEntity::getBId,bid);
      return genericConverter.toDTOList(baseMapper.selectList(wrapper));
   }
}
